package com.blogspot.oguzhan.game;

import com.blogspot.oguzhan.game.Move;
import com.blogspot.oguzhan.game.TurnBasedGameEngine;

public class MockTurnBasedGameEngine implements TurnBasedGameEngine {

	private int numberOfMoves;
	private int limit;

	public MockTurnBasedGameEngine(int limit) {
		this.limit = limit;
		this.numberOfMoves = 0;
	}

	@Override
	public void move(Move move) {
		numberOfMoves++;
	}

	@Override
	public boolean isGameOver() {
		if (limit == numberOfMoves)
			return true;
		else
			return false;
	}

}
